// source --> https://en.belfaso.info/wp-content/plugins/wp-e-commerce/wpsc-core/js/wp-e-commerce.js?ver=3.11.4.6fd2d64 if("undefined"!=typeof wpsc_vars)var wpsc_ajax=wpsc_vars.wpsc_ajax,base_url=wpsc_vars.base_url,WPSC_URL=wpsc_vars.WPSC_URL,WPSC_IMAGE_URL=wpsc_vars.WPSC_IMAGE_URL,WPSC_IMAGE_URL=wpsc_vars.WPSC_IMAGE_URL,WPSC_CORE_IMAGES_URL=wpsc_vars.WPSC_CORE_IMAGES_URL,fileThickboxLoadingImage=wpsc_vars.fileThickboxLoadingImage;function wpsc_var_isset(e){return"undefined"!=typeof wpsc_vars&&void 0!==wpsc_vars[e]}function wpsc_var_get(e){if("undefined"!=typeof wpsc_vars)return wpsc_vars[e]}function wpsc_element_is_visible(e){var t=jQuery(window).scrollTop(),i=t+jQuery(window).height(),a=e.offset().top;return t<=a&&a<=i&&a<=i&&t<=a&&e.is(":visible")}function wpsc_var_set(e,t){if("undefined"!=typeof wpsc_vars)return wpsc_vars[e]=t}function wpsc_create_option(e,t){return"undefined"===t&&(t=""),jQuery(document.createElement("option")).val(t).text(e)}var wpsc_visitor_id=!1;if(document.cookie.indexOf("wpsc_customer_cookie")<0&&document.cookie.indexOf("wpsc_attempted_validate")<0){var now=new Date;document.cookie="wpsc_attempted_validate="+now;var wpsc_http=new XMLHttpRequest;if(wpsc_http.open("POST",wpsc_ajax.ajaxurl+"?action=wpsc_validate_customer",!1),wpsc_http.setRequestHeader("Content-type","application/json; charset=utf-8"),wpsc_http.send(),200==wpsc_http.status){var result=JSON.parse(wpsc_http.responseText);result.valid&&result.id&&(wpsc_visitor_id=result.id)}}function wpsc_do_ajax_request(e,t){jQuery.ajax({type:"post",dataType:"json",url:wpsc_ajax.ajaxurl,data:e,success:t})}function wpsc_update_customer_data(e,t,i){try{wpsc_do_ajax_request({action:"wpsc_customer_updated_data",meta_key:e,meta_value:t},i)}catch(e){window.console&&window.console.log&&console.log(e)}}function wpsc_get_customer_data(e){try{wpsc_do_ajax_request({action:"wpsc_get_customer_meta"},e)}catch(e){window.console&&window.console.log&&console.log(e)}}function wpsc_update_customer_meta(e){var a=e.data.request.meta_key;if(e.hasOwnProperty("data")&&e.data.hasOwnProperty("customer_meta")){var t=e.data.customer_meta;jQuery.each(t,function(e,i){jQuery('[data-wpsc-meta-key="'+e+'"]').each(function(e,t){if(wpsc_get_element_meta_key(this)!=a)if(jQuery(this).is(":checkbox"))wpsc_string_to_boolean(i)?jQuery(this).attr("checked","checked"):jQuery(this).removeAttr("checked");else if(jQuery(this).hasClass("wpsc-region-dropdown"));else if(jQuery(this).hasClass("wpsc-country-dropdown")){jQuery(this).val()!=i&&(jQuery(this).val(i),wpsc_update_regions_list_to_match_country(jQuery(this)))}else{jQuery(this).val()!=i&&jQuery(this).val(i)}})}),jQuery.each(t,function(e,i){jQuery('[data-wpsc-meta-key="'+e+'"]').each(function(e,t){wpsc_get_element_meta_key(this)!=a&&(jQuery(this).hasClass("wpsc-region-dropdown")&&jQuery(this).val()!=i&&jQuery(this).val(i))})})}}function wpsc_check_for_shipping_recalc_needed(e){if(e.hasOwnProperty("needs_shipping_recalc")&&jQuery("#checkout_page_container").length&&e.needs_shipping_recalc){var t=jQuery("table.productcart").first(),i=wpsc_var_get("msg_shipping_need_recalc");jQuery("#shipping_quotes_need_recalc").length||(t.before('"),jQuery("#shipping_quotes_need_recalc").show(375),wpsc_ajax.hasOwnProperty("slide_to_shipping_error")&&wpsc_ajax.slide_to_shipping_error&&!wpsc_element_is_visible(jQuery("#shipping_quotes_need_recalc"))&&jQuery("html, body").animate({scrollTop:jQuery("#checkout_page_container").offset().top},600)),jQuery("input:radio[name=shipping_method]").prop("checked",!1).attr("disabled",!0),jQuery("input:radio[name=shipping_method]").closest("tr").hide(275),jQuery("tr.wpsc_shipping_header").hide(275),jQuery(".wpsc_checkout_table_totals").hide(275),jQuery(".total_tax").closest("table").hide(275)}}function wpsc_update_checkout_info(e){return e.hasOwnProperty("shipping_keys")&&jQuery.each(e.shipping_keys,function(e,t){jQuery("#shipping_"+e).html(t)}),e.hasOwnProperty("tax")&&(0"+e.display_tax+""),e.hasOwnProperty("total_input")&&jQuery("#checkout_total").html(e.total+""),jQuery(".wpsc-visitor-meta").on("change",wpsc_meta_item_change),jQuery(document).trigger({type:"wpsc_update_checkout_info",info:e}),!0}function wpsc_meta_item_change_response(e){if(jQuery(".wpsc-visitor-meta").off("change",wpsc_meta_item_change),e.hasOwnProperty("success")&&e.success&&e.hasOwnProperty("data")){if(e.data.hasOwnProperty("replacements")&&jQuery.each(e.data.replacements,function(e,t){jQuery("#"+t.elementid).replaceWith(t.element)}),e.data.hasOwnProperty("checkout_info")&&!wpsc_update_checkout_info(e.data.checkout_info))return!1;e.data.hasOwnProperty("customer_meta")&&wpsc_update_customer_meta(e);var t=jQuery.Event("wpsc-visitor-meta-change");t.response=e,jQuery(".wpsc-visitor-meta:first").trigger(t),wpsc_check_for_shipping_recalc_needed(e.data)}jQuery(".wpsc-visitor-meta").on("change",wpsc_meta_item_change),wpsc_adjust_checkout_form_element_visibility()}function wpsc_get_element_meta_key(e){if(e instanceof jQuery);else if("string"==typeof input)e=wpsc_get_wpsc_meta_element(e);else{if("object"!=typeof input)return null;e=jQuery(e)}var t=e.attr("data-wpsc-meta-key");return void 0===t&&void 0===(t=e.attr("title"))&&(t=e.attr("id")),t}function wpsc_meta_item_change(){var i=wpsc_get_value_from_wpsc_meta_element(this),e=wpsc_get_element_meta_key(jQuery(this)),a=this;jQuery('[data-wpsc-meta-key="'+e+'"]').each(function(e,t){a!=this&&(jQuery(this).is(":checkbox")?wpsc_string_to_boolean(i)?jQuery(this).attr("checked","checked"):jQuery(this).removeAttr("checked"):jQuery(this).val(i))}),wpsc_update_customer_data(e,i,wpsc_meta_item_change_response)}function wpsc_adjust_checkout_form_element_visibility(){if(jQuery(".wpsc-visitor-meta").off("change",wpsc_meta_item_change),jQuery("#shippingSameBilling").length){var e=jQuery("#shippingSameBilling").closest("tr");wpsc_show_checkout_shipping_fields()?(jQuery(e).siblings().show(),jQuery("#shippingsameasbillingmessage").hide()):(jQuery(e).siblings(":not( .checkout-heading-row, :has( #agree ), :has( .wpsc_gateway_container ) ) ").hide(),jQuery("#shippingsameasbillingmessage").show())}return wpsc_update_location_elements_visibility(),wpsc_countries_lists_handle_restrictions(),jQuery(".wpsc-visitor-meta").on("change",wpsc_meta_item_change),!0}function wpsc_countries_lists_handle_restrictions(){if("object"==typeof wpsc_acceptable_shipping_countries){var e=wpsc_get_value_from_wpsc_meta_element("billingcountry"),t=wpsc_get_value_from_wpsc_meta_element("shippingcountry"),i='select[data-wpsc-meta-key="shippingcountry"]',a=!1;jQuery("#shippingSameBilling").length&&jQuery("#shippingSameBilling").is(":checked")&&(a=!0,i+=', select[data-wpsc-meta-key="billingcountry"]');var c=jQuery(i);for(var s in c.empty(),c.append(wpsc_create_option(wpsc_var_get("no_country_selected"))),wpsc_acceptable_shipping_countries)if(wpsc_acceptable_shipping_countries.hasOwnProperty(s)){var n=wpsc_acceptable_shipping_countries[s];c.append(wpsc_create_option(n,s))}if(c.val(t),!a){if(i='select[data-wpsc-meta-key="billingcountry"]',(c=jQuery(i)).length)for(var s in c.empty(),c.append(wpsc_create_option(wpsc_var_get("no_country_selected"))),countries=wpsc_var_get("wpsc_countries"),countries)if(countries.hasOwnProperty(s)){n=countries[s];c.append(wpsc_create_option(n,s))}c.val(e)}}return!0}function wpsc_update_location_labels(e){var t,i=wpsc_get_element_meta_key(e);if("billingcountry"==i){var a=wpsc_get_wpsc_meta_element("billingstate");a&&(t=wpsc_country_region_label(wpsc_get_value_from_wpsc_meta_element("billingcountry")),a.attr("placeholder",t),wpsc_update_labels(wpsc_get_wpsc_meta_elements("billingstate"),t))}else if("shippingcountry"==i){var c=wpsc_get_wpsc_meta_element("shippingstate");c&&(t=wpsc_country_region_label(wpsc_get_value_from_wpsc_meta_element("shippingcountry")),c.attr("placeholder",t),wpsc_update_labels(wpsc_get_wpsc_meta_elements("shippingstate"),t))}return!0}function wpsc_update_regions_list_to_match_country(e){var t;t=0===wpsc_get_element_meta_key(e).indexOf("shipping")?"shippingregion":"billingregion";var i=wpsc_country_region_element(e),a=wpsc_get_wpsc_meta_elements(t).filter("select"),c=wpsc_get_value_from_wpsc_meta_element(e),s=wpsc_get_value_from_wpsc_meta_element(t);if(wpsc_country_has_regions(c)){var n=wpsc_no_region_selected_message(c),r=wpsc_country_regions(c);for(var _ in a.empty(),a.append(wpsc_create_option(n)),r)if(r.hasOwnProperty(_)){var o=r[_];a.append(wpsc_create_option(o,_))}s&&a.val(s),i.show()}else i.hide(),i.empty();wpsc_update_location_labels(e),wpsc_update_location_elements_visibility(),wpsc_copy_meta_value_to_similiar(e)}function wpsc_string_to_boolean(e){return""!==e.trim()}function wpsc_change_regions_when_country_changes(){return wpsc_copy_meta_value_to_similiar(jQuery(this)),wpsc_update_regions_list_to_match_country(jQuery(this)),!0}function wpsc_copy_meta_value_to_similiar(i){var e=wpsc_get_element_meta_key(i),a=i.val();jQuery('[data-wpsc-meta-key="'+e+'"]').each(function(e,t){this!=i&&(jQuery(this).is(":checkbox")?wpsc_string_to_boolean(a)?jQuery(this).attr("checked","checked"):jQuery(this).removeAttr("checked"):jQuery(this).val()!=a&&a&&jQuery(this).val(a))})}function wpsc_checkout_item_form_id(e){var t=wpsc_var_get("wpsc_checkout_unique_name_to_form_id_map"),i=!1;return t&&t.hasOwnProperty(e)&&(i=t[e]),i}function wpsc_show_checkout_shipping_fields(){var e=!0;return jQuery("#shippingSameBilling").length&&(e=!jQuery("#shippingSameBilling").is(":checked")),e}function wpsc_setup_region_dropdowns(){wpsc_get_wpsc_meta_elements("billingcountry").each(function(e,t){wpsc_update_regions_list_to_match_country(jQuery(this))}),wpsc_get_wpsc_meta_elements("shippingcountry").each(function(e,t){wpsc_update_regions_list_to_match_country(jQuery(this))})}function wpsc_update_location_elements_visibility(){if(wpsc_checkout_item_active("billingstate")){var e=wpsc_get_wpsc_meta_elements("billingstate"),t=wpsc_get_wpsc_meta_elements("billingregion");wpsc_billing_country_has_regions()?(t.show(),e.hide()):(t.hide(),e.show())}if(wpsc_checkout_item_active("shippingstate")){var i=wpsc_get_wpsc_meta_elements("shippingstate"),a=wpsc_get_wpsc_meta_elements("shippingregion");wpsc_shipping_country_has_regions()?(a.show(),i.hide()):(a.hide(),i.show())}return!0}function wpsc_country_has_regions(e){return wpsc_var_isset("wpsc_country_"+e+"_regions")}function wpsc_country_regions(e){return wpsc_var_get("wpsc_country_"+e+"_regions")}function wpsc_country_region_label(e){var t=wpsc_var_get("wpsc_country_"+e+"_region_label");return t||(t=wpsc_var_get("no_region_label")),t}function wpsc_current_destination_country(){return wpsc_get_value_from_wpsc_meta_element("shippingcountry")}function wpsc_no_region_selected_message(e){var t=wpsc_country_region_label(e);return wpsc_var_get("no_region_selected_format").replace("%s",t)}function wpsc_get_label_element(e){var t,i;if(e instanceof jQuery)t=e;else if("string"==typeof e)t=wpsc_get_wpsc_meta_element(e);else{if("object"!=typeof e)return null;t=jQuery(e)}if(t){var a=t.attr("id");a&&(i=jQuery("label[for='"+a+"']").first())}return i}function wpsc_update_labels(e,a){e.each(function(e,t){var i=wpsc_get_label_element(jQuery(this));void 0!==i&&(i.find(".asterix")&&(a+='*'),i.html(a))})}function wpsc_get_wpsc_meta_element(e){return wpsc_get_wpsc_meta_elements(e).first()}function wpsc_get_wpsc_meta_elements(e){return jQuery('[data-wpsc-meta-key="'+e+'"]')}function wpsc_get_value_from_wpsc_meta_element(e){var t;if(e instanceof jQuery)t=e;else if("string"==typeof e)t=wpsc_get_wpsc_meta_element(e);else{if("object"!=typeof e)return null;t=jQuery(e)}var i=!1;return t.is(":checkbox")?i=t.is(":checked")?t.val():"":t.is("select")?(i=t.val())||"none"!=t.css("display")||(i=t.find("option[selected]").val()):i=t.val(),i}function wpsc_country_region_element(e){"string"==typeof e&&(e=wpsc_get_wpsc_meta_element(e));var t=e.attr("id");return jQuery("#"+(t+"_region"))}function wpsc_region_change(){wpsc_copy_meta_value_to_similiar(jQuery(this))}function wpsc_checkout_item_active(e){var t=wpsc_var_get("wpsc_checkout_item_active");return void 0!==t&&(t.hasOwnProperty(e)&&t[e])}function wpsc_billing_country_has_regions(){var e=!1,t=wpsc_billing_country();return t&&(e=wpsc_country_has_regions(t)),e}function wpsc_billing_country(){return wpsc_checkout_item_active("billingcountry")?wpsc_get_value_from_wpsc_meta_element("billingcountry"):wpsc_var_get("base_country")}function wpsc_shipping_country(){return wpsc_checkout_item_active("shippingcountry")?wpsc_get_value_from_wpsc_meta_element("shippingcountry"):wpsc_var_get("base_country")}function wpsc_shipping_country_has_regions(){var e=!1,t=wpsc_shipping_country();return t&&(e=wpsc_country_has_regions(t)),e}function switchmethod(e,t){data={action:"update_shipping_price",option:e,method:t},jQuery.post(wpsc_ajax.ajaxurl,data,function(e){jQuery(document).trigger({type:"switchmethod",response:e}),jQuery(".pricedisplay.checkout-shipping .pricedisplay")?(jQuery(".pricedisplay.checkout-shipping > .pricedisplay:first").html(e.shipping),jQuery(".shoppingcart .pricedisplay.checkout-shipping > .pricedisplay:first").html(e.shipping)):jQuery(".pricedisplay.checkout-shipping").html(e.shipping),0"+e.html),jQuery('input[name="collected_data['+e.region_field_id+']"]').closest("tr").hide()):jQuery('input[name="collected_data['+e.region_field_id+']"]').closest("tr").show()},"json")}jQuery(document).ready(function($){var selector='select[data-wpsc-meta-key="shippingregion"]',select=jQuery(selector).first();select.closest("tr").hasClass("wpsc_hidden")&&select.closest("tr").removeClass("wpsc_hidden");var selector='select[data-wpsc-meta-key="billingregion"]',select=jQuery(selector).first();select.closest("tr").hasClass("wpsc_hidden")&&select.closest("tr").removeClass("wpsc_hidden"),jQuery(".wpsc-country-dropdown").length&&jQuery(".wpsc-country-dropdown").on("change",wpsc_change_regions_when_country_changes),jQuery(".wpsc-region-dropdown").length&&jQuery(".wpsc-region-dropdown").on("change",wpsc_region_change),jQuery(".wpsc-visitor-meta").length&&jQuery(".wpsc-visitor-meta").on("change",wpsc_meta_item_change),wpsc_setup_region_dropdowns(),wpsc_adjust_checkout_form_element_visibility(),wpsc_update_location_elements_visibility(),wpsc_countries_lists_handle_restrictions(),jQuery("#shippingSameBilling").on("change",wpsc_adjust_checkout_form_element_visibility),jQuery("#checkout_page_container .wpsc_email_address input").val()&&jQuery("#wpsc_checkout_gravatar").attr("src","https://secure.gravatar.com/avatar/"+MD5(jQuery("#checkout_page_container .wpsc_email_address input").val().split(" ").join(""))+"?s=60&d=mm"),jQuery("#checkout_page_container .wpsc_email_address input").keyup(function(){jQuery("#wpsc_checkout_gravatar").attr("src","https://secure.gravatar.com/avatar/"+MD5(jQuery(this).val().split(" ").join(""))+"?s=60&d=mm")}),jQuery("#fancy_notification").appendTo("body"),$('input[title="shippingstate"], input[title="billingstate"]').each(function(e,t){var i=$(this),a=i.val();i.is(":visible")&&!isNaN(parseFloat(a))&&isFinite(a)&&i.val("")}),jQuery("form.product_form, .wpsc-add-to-cart-button-form").on("submit",function(){if(file_upload_elements=jQuery.makeArray(jQuery('input[type="file"]',jQuery(this))),0e.numeric_price?(n.parent().show(),r.parent().show()):(n.parent().hide(),r.parent().hide())),s.val(e.numeric_price),!0===e.stock_available?(_.find("input.wpsc-buy-now-quantity").val("1"),_.find("input.wpsc-buy-now-button").prop("disabled",!1)):_.find("input.wpsc-buy-now-button").prop("disabled",!0),_.find('input[name="'+jQuery(o).prop("name")+'"]').val(jQuery(o).val()))},"json")}}),jQuery("form.product_form").ready(function(){product_id=jQuery('input[name="product_id"]',this).val(),image_element_id="product_image_"+product_id,jQuery("#"+image_element_id).data("product_id",product_id),parent_container=jQuery(this).parents("div.product_view_"+product_id),jQuery("div.item_no_image",parent_container).data("product_id",product_id)}),jQuery("div.wpsc_cart_loading").length&&(jQuery("table.wpsc_checkout_table").length&&jQuery(".wpsc_buy_button").length||jQuery("div.wpsc_cart_loading").ready(function(){form_values={action:"get_cart"},jQuery.ajax({type:"post",dataType:"html",url:wpsc_ajax.ajaxurl,data:{action:"get_cart"},success:function(e){jQuery("div.shopping-cart-wrapper").html(e),jQuery("div.wpsc_loading_animation").css("visibility","hidden")},error:function(e){jQuery("div.shopping-cart-wrapper").html(wpsc_ajax.ajax_get_cart_error),jQuery("div.wpsc_loading_animation").css("visibility","hidden")}})})),jQuery("body").on("click","a.emptycart",function(){return parent_form=jQuery(this).parents("form"),form_values=jQuery(parent_form).serialize()+"&action="+jQuery('input[name="wpsc_ajax_action"]',parent_form).val(),jQuery.post(wpsc_ajax.ajaxurl,form_values,function(e){jQuery("div.shopping-cart-wrapper").html(e.widget_output),jQuery(document).trigger({type:"wpsc_empty_cart",response:e})},"json"),!1})}),jQuery(document).ready(function(){jQuery(".productcol, .textcol, .product_grid_item, .wpsc-add-to-cart-button").each(function(){jQuery(".wpsc_buy_button",this).click(function(){var e=jQuery(this).closest("form").find(".wpsc_select_variation"),t=!1;if(e.each(function(){var e=jQuery(this);e.val()<=0&&(t=!0,e.css("position","relative"),e.animate({left:"-=5px"},50,function(){e.animate({left:"+=10px"},100,function(){e.animate({left:"-=10px"},100,function(){e.animate({left:"+=10px"},100,function(){e.animate({left:"-=5px"},50)})})})}))}),t)return!1})})}),jQuery(document).ready(function(){jQuery(".attachment-gold-thumbnails").click(function(){return jQuery(this).parents(".imagecol:first").find(".product_image").attr("src",jQuery(this).parent().attr("rev")),jQuery(this).parents(".imagecol:first").find(".product_image").parent("a:first").attr("href",jQuery(this).parent().attr("href")),!1})}),eval(function(e,t,i,a,c,s){if(c=function(e){return(e<62?"":c(parseInt(e/62)))+(35<(e%=62)?String.fromCharCode(e+29):e.toString(36))},!"".replace(/^/,String)){for(;i--;)s[c(i)]=a[i]||c(i);a=[function(e){return s[e]}],c=function(){return"\\w+"},i=1}for(;i--;)a[i]&&(e=e.replace(new RegExp("\\b"+c(i)+"\\b","g"),a[i]));return e}('e 27=o(p){o 1c(N,1y){m(N<<1y)|(N>>>(32-1y))}o f(1k,1e){e 1j,1l,E,B,w;E=(1k&1r);B=(1e&1r);1j=(1k&1f);1l=(1e&1f);w=(1k&1B)+(1e&1B);V(1j&1l){m(w^1r^E^B)}V(1j|1l){V(w&1f){m(w^1Z^E^B)}1h{m(w^1f^E^B)}}1h{m(w^E^B)}}o F(x,y,z){m(x&y)|((~x)&z)}o G(x,y,z){m(x&z)|(y&(~z))}o H(x,y,z){m(x^y^z)}o I(x,y,z){m(y^(x|(~z)))}o l(a,b,c,d,x,s,v){a=f(a,f(f(F(b,c,d),x),v));m f(1c(a,s),b)};o j(a,b,c,d,x,s,v){a=f(a,f(f(G(b,c,d),x),v));m f(1c(a,s),b)};o h(a,b,c,d,x,s,v){a=f(a,f(f(H(b,c,d),x),v));m f(1c(a,s),b)};o i(a,b,c,d,x,s,v){a=f(a,f(f(I(b,c,d),x),v));m f(1c(a,s),b)};o 1A(p){e A;e J=p.1g;e 1q=J+8;e 1D=(1q-(1q%1G))/1G;e 1m=(1D+1)*16;e t=1z(1m-1);e K=0;e q=0;24(q>>29;m t};o W(N){e 1n="",1o="",1p,M;1v(M=0;M<=3;M++){1p=(N>>>(M*8))&1X;1o="0"+1p.1U(16);1n=1n+1o.1V(1o.1g-2,2)}m 1n};o 1C(p){p=p.1W(/\\r\\n/g,"\\n");e u="";1v(e n=0;n1T)&&(c<25)){u+=D.C((c>>6)|26);u+=D.C((c&1s)|1i)}1h{u+=D.C((c>>12)|2c);u+=D.C(((c>>6)&1s)|1i);u+=D.C((c&1s)|1i)}}m u};e x=1z();e k,1t,1u,1x,1w,a,b,c,d;e Z=7,Y=12,19=17,L=22;e S=5,R=9,Q=14,P=20;e T=4,U=11,X=16,O=23;e 18=6,1b=10,1a=15,1d=21;p=1C(p);x=1A(p);a=2d;b=2b;c=2a;d=28;1v(k=0;k https://en.belfaso.info/wp-content/plugins/wp-e-commerce/wpsc-admin/js/jquery.livequery.js?ver=1.0.3 !function(o){o.extend(o.fn,{livequery:function(i,n,u){var r,s=this;return o.isFunction(i)&&(u=n,n=i,i=void 0),o.each(o.livequery.queries,function(e,t){if(!(s.selector!=t.selector||s.context!=t.context||i!=t.type||n&&n.$lqguid!=t.fn.$lqguid||u&&u.$lqguid!=t.fn2.$lqguid))return(r=t)&&!1}),(r=r||new o.livequery(this.selector,this.context,i,n,u)).stopped=!1,r.run(),this},expire:function(i,n,u){var r=this;return o.isFunction(i)&&(u=n,n=i,i=void 0),o.each(o.livequery.queries,function(e,t){r.selector!=t.selector||r.context!=t.context||i&&i!=t.type||n&&n.$lqguid!=t.fn.$lqguid||u&&u.$lqguid!=t.fn2.$lqguid||this.stopped||o.livequery.stop(t.id)}),this}}),o.livequery=function(e,t,i,n,u){return this.selector=e,this.context=t||document,this.type=i,this.fn=n,this.fn2=u,this.elements=[],this.stopped=!1,this.id=o.livequery.queries.push(this)-1,n.$lqguid=n.$lqguid||o.livequery.guid++,u&&(u.$lqguid=u.$lqguid||o.livequery.guid++),this},o.livequery.prototype={stop:function(){var i=this;this.type?this.elements.unbind(this.type,this.fn):this.fn2&&this.elements.each(function(e,t){i.fn2.apply(t)}),this.elements=[],this.stopped=!0},run:function(){if(!this.stopped){var i=this,e=this.elements,n=o(this.selector,this.context),t=n.not(e);this.elements=n,this.type?(t.bind(this.type,this.fn),0 https://en.belfaso.info/wp-content/plugins/wp-e-commerce/wpsc-core/js/user.js?ver=3.11.46fd2d64 var testsuccess=0,lnid=new Array;function categorylist(e){self.location=e}var noresults=function(e){return!0};function roundNumber(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}var getresults=function(results){eval(results),window.drag_and_drop_cart_updater&&drag_and_drop_cart_updater(),null!=document.getElementById("loadingimage")?document.getElementById("loadingindicator").style.visibility="hidden":null!=document.getElementById("alt_loadingimage")&&(document.getElementById("alt_loadingindicator").style.visibility="hidden"),null!=document.getElementById("sliding_cart")&&"none"==document.getElementById("sliding_cart").style.display&&(jQuery("#fancy_collapser").attr("src",WPSC_CORE_IMAGES_URL+"/minus.png"),jQuery("#sliding_cart").show("fast",function(){ajax.post("index.php",noresults,"ajax=true&set_slider=true&state=1")})),null!=document.getElementById("fancy_notification")&&jQuery("#loading_animation").css("display","none")},previous_rating;function submitform(e,t){return ajax.post("index.php?ajax=true&user=true",getresults,ajax.serialize(e)),null!=document.getElementById("loadingimage")?(document.getElementById("loadingimage").src=WPSC_CORE_IMAGES_URL+"/indicator.gif",document.getElementById("loadingindicator").style.visibility="visible"):null!=document.getElementById("alt_loadingimage")&&(document.getElementById("alt_loadingimage").src=WPSC_CORE_IMAGES_URL+"/indicator.gif",document.getElementById("alt_loadingindicator").style.visibility="visible"),!1}function prodgroupswitch(e){return"brands"==e?(jQuery(".categorydisplay").css("display","none"),jQuery(".branddisplay").css("display","block")):"categories"==e&&(jQuery(".categorydisplay").css("display","block"),jQuery(".branddisplay").css("display","none")),!1}function ie_rating_rollover(e,t){switch(target_element=document.getElementById(e),t){case 1:previous_rating=target_element.style.background,target_element.style.background="url("+WPSC_CORE_IMAGES_URL+"/blue-star.gif)";break;default:target_element.style.background!="url("+WPSC_CORE_IMAGES_URL+"/gold-star.png)"&&(target_element.style.background=previous_rating)}}var apply_rating=function(e){for(outarr=e.split(","),i=1;i<=outarr[1];i++)id="star"+outarr[0]+"and"+i+"_link",document.getElementById(id).style.background="url("+WPSC_CORE_IMAGES_URL+"/gold-star.png)";for(i=5;i>outarr[1];i--)id="star"+outarr[0]+"and"+i+"_link",document.getElementById(id).style.background="#c4c4b8";lnid[outarr[0]]=1,rating_id="rating_"+outarr[0]+"_text","Your Rating:"!=document.getElementById(rating_id).innerHTML&&(document.getElementById(rating_id).innerHTML="Your Rating:"),saved_id="saved_"+outarr[0]+"_text",document.getElementById(saved_id).style.display="inline",update_vote_count(outarr[0])};function hide_save_indicator(e){document.getElementById(e).style.display="none"}function rate_item(e,t){ajax.post("index.php",apply_rating,"ajax=true&rate_item=true&product_id="+e+"&rating="+t)}function update_vote_count(t){ajax.post("index.php",function(e){outarr=e.split(","),vote_count=outarr[0],t=outarr[1],vote_count_id="vote_total_"+t,document.getElementById(vote_count_id).innerHTML=vote_count},"ajax=true&get_rating_count=true&product_id="+t)}function update_preview_url(e){return image_height=document.getElementById("image_height").value,image_width=document.getElementById("image_width").value,0",document.getElementById("out_default_pic").innerHTML="",document.getElementById("out_grid_pic").innerHTML="",-1!=location1.search(/view_type/)?$new_location=location1.replace("grid","default"):-1!=location1.search(/\?/)?$new_location=location1+"&view_type=default":$new_location=location1+"?view_type=default"):(document.getElementById("out_view_type").innerHTML="",document.getElementById("out_default_pic").innerHTML="",document.getElementById("out_grid_pic").innerHTML="",-1!=location1.search(/view_type/)?$new_location=location1.replace("default","grid"):-1!=location1.search(/\?/)?$new_location=location1+"&view_type=grid":$new_location=location1+"?view_type=grid"),window.location=$new_location}function log_buynow(e){id=e.product_id.value,price=e.item_price_1.value,ajax.post("index.php",noresults,"ajax=true&buynow=true&product_id="+id+"price="+price)}function gotoexternallink(e,t){return""==t&&(t="_self"),window.open(e,t),!1}function manage_extras(product_id,extras_id,special){if(value_ids="",special_prefix="",extra_idss="",document.getElementById("extras_indicator"+product_id+extras_id).style.display="block",form_id=1==special?"specials_"+product_id:"product_"+product_id,jQuery(document).ready(function(){extra_ids=jQuery("input.extras_"+product_id+":checked")}),jQuery.each(extra_ids,function(e,t){extra_idss+="&extra[]="+extra_ids[e].value}),pm="stay",1==special)var return_price=function(results){eval(results),null!=product_id&&(target_id="special_product_price_"+product_id,buynow_id="BB_BuyButtonForm"+product_id,document.getElementById(target_id).firstChild.innerHTML=price,""!=price.substring(27,price.indexOf("&"))&&(document.getElementById(buynow_id).item_price_1.value=price.substring(27,price.indexOf("&")))),document.getElementById("extras_indicator"+product_id+extras_id).style.display="none"};else var return_price=function(results){eval(results),null!=product_id&&(target_id="product_price_"+product_id,buynow_id="BB_BuyButtonForm"+product_id,document.getElementById(target_id).firstChild.innerHTML=price,""!=price.substring(27,price.indexOf("&"))&&(document.getElementById(form_id).item_price_1.value=price.substring(27,price.indexOf("&")))),document.getElementById("extras_indicator"+product_id+extras_id).style.display="none"};ajax.post("index.php",return_price,"ajax=true&get_updated_price=true&pm="+pm+"&product_id="+product_id+extra_idss)}function store_list(){address=document.getElementById("user_address").value,city=document.getElementById("user_city").value,""!=address&&""!=city&&(document.getElementById("gloc_loading").style.display="block",ajax.post("index.php",return_store_list,"ajax=true&store_list=true&addr="+address+"&city="+city))}var return_store_list=function(e){return document.getElementById("gloc_storelist").innerHTML=e,document.getElementById("gloc_loading").style.display="none",!0};function statusTextKeyPress(e){return e||(e=window.event),e.keyCode?keyPressed=e.keyCode:e.which&&(keyPressed=e.which),9!=keyPressed&&(13==keyPressed?(newstatus=document.getElementById("status_change_text").value,ajax.post("index.php",submit_user_status,"ajax=true&submitstatus=true&status="+newstatus),!1):27!=keyPressed||!(document.getElementById("edit_status_select").style.display="none"))}var usps_method_switch=function(e){shipping=e.split("---"),shipping1=shipping[1],jQuery("#checkout_total").html(shipping[0]),jQuery(".total > .pricedisplay").remove(),jQuery(".total > .totalhead").after(shipping[0]),jQuery(".postage > .pricedisplay").remove(),jQuery(".postage > .postagehead").after(shipping1)};function add_meta_box(e){jQuery(".wpsc_buy_button").before(e),jQuery(".time_requested").datepicker({dateFormat:"yy-mm-dd"})}function submit_purchase(){document.forms.ideal_form.submit()}function do_nothing(){}jQuery(document).ready(function(){if(1==jQuery("#openair").val()){var t=0,i=9999,n=0,r=0;jQuery("div.product_grid_item").each(function(){jQuery(this).css("margin","0"),jQuery(this).height()>t&&(t=jQuery(this).height());var e=jQuery(this).offset();e.left<=i&&(i=e.left),e.top>r&&(r=e.top),e.left>n&&(n=e.left)}),jQuery("div.product_grid_item:last").each(function(){jQuery(this).offset().left!=n&&jQuery(this).css("border-right","1px solid #ddd")}),jQuery("div.product_grid_item").each(function(){var e=jQuery(this).offset();e.left==i&&(setTimeout("do_nothing",200),jQuery(this).css("border-left","0px solid #ddd")),e.top==r&&jQuery(this).css("border-bottom","0px solid #ddd"),jQuery(this).height(t+30)})}function e(){var e=jQuery(this).parents("div.custom_gateway");jQuery("table input",e).attr("disabled",!1),jQuery("table",e).show(),jQuery("div.custom_gateway table").not(jQuery("table",e)).hide(),jQuery("div.custom_gateway table input").not(jQuery("table input",e)).attr("disabled",!0)}jQuery("div.custom_gateway table").each(function(){"none"==jQuery(this).css("display")&&jQuery("input",this).attr("disabled",!0)}),jQuery("input.custom_gateway").change(function(){1==jQuery(this).is(":checked")&&e.call(this)}),e.call(jQuery("input.custom_gateway:checked"))}); // source --> https://en.belfaso.info/wp-content/plugins/wp-video-lightbox/js/jquery.prettyPhoto.min.js?ver=3.1.6 /* ------------------------------------------------------------------------ Class: prettyPhoto Use: Lightbox clone for jQuery Author: Stephane Caron (http://www.no-margin-for-errors.com) Version: 3.1.6 ------------------------------------------------------------------------- */ !function(a){function b(){var a=location.href;return hashtag=-1!==a.indexOf("#prettyPhoto")?decodeURI(a.substring(a.indexOf("#prettyPhoto")+1,a.length)):!1,hashtag&&(hashtag=hashtag.replace(/<|>/g,"")),hashtag}function c(){"undefined"!=typeof theRel&&(location.hash=theRel+"/"+rel_index+"/")}function d(){-1!==location.href.indexOf("#prettyPhoto")&&(location.hash="prettyPhoto")}function e(a,b){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var c="[\\?&]"+a+"=([^&#]*)",d=new RegExp(c),e=d.exec(b);return null==e?"":e[1]}a.prettyPhoto={version:"3.1.6"},a.fn.prettyPhoto=function(f){function r(){a(".pp_loaderIcon").hide(),projectedTop=scroll_pos.scrollTop+(o/2-i.containerHeight/2),projectedTop<0&&(projectedTop=0),$ppt.fadeTo(settings.animation_speed,1),$pp_pic_holder.find(".pp_content").animate({height:i.contentHeight,width:i.contentWidth},settings.animation_speed),$pp_pic_holder.animate({top:projectedTop,left:p/2-i.containerWidth/2<0?0:p/2-i.containerWidth/2,width:i.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(i.height).width(i.width),$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed),isSet&&"image"==w(pp_images[set_position])?$pp_pic_holder.find(".pp_hoverContainer").show():$pp_pic_holder.find(".pp_hoverContainer").hide(),settings.allow_expand&&(i.resized?a("a.pp_expand,a.pp_contract").show():a("a.pp_expand").hide()),!settings.autoplay_slideshow||q||j||a.prettyPhoto.startSlideshow(),settings.changepicturecallback(),j=!0}),A(),f.ajaxcallback()}function s(b){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden"),$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){a(".pp_loaderIcon").show(),b()})}function t(b){b>1?a(".pp_nav").show():a(".pp_nav").hide()}function u(a,b){if(resized=!1,v(a,b),imageWidth=a,imageHeight=b,(n>p||m>o)&&doresize&&settings.allow_resize&&!h){for(resized=!0,fitting=!1;!fitting;)n>p?(imageWidth=p-200,imageHeight=b/a*imageWidth):m>o?(imageHeight=o-200,imageWidth=a/b*imageHeight):fitting=!0,m=imageHeight,n=imageWidth;(n>p||m>o)&&u(n,m),v(imageWidth,imageHeight)}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(m),containerWidth:Math.floor(n)+2*settings.horizontal_padding,contentHeight:Math.floor(k),contentWidth:Math.floor(l),resized:resized}}function v(b,c){b=parseFloat(b),c=parseFloat(c),$pp_details=$pp_pic_holder.find(".pp_details"),$pp_details.width(b),detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom")),$pp_details=$pp_details.clone().addClass(settings.theme).width(b).appendTo(a("body")).css({position:"absolute",top:-1e4}),detailsHeight+=$pp_details.height(),detailsHeight=detailsHeight<=34?36:detailsHeight,$pp_details.remove(),$pp_title=$pp_pic_holder.find(".ppt"),$pp_title.width(b),titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom")),$pp_title=$pp_title.clone().appendTo(a("body")).css({position:"absolute",top:-1e4}),titleHeight+=$pp_title.height(),$pp_title.remove(),k=c+detailsHeight,l=b,m=k+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height(),n=b}function w(a){return a.match(/youtube\.com\/watch/i)||a.match(/youtu\.be/i)?"youtube":a.match(/vimeo\.com/i)?"vimeo":a.match(/\b.mov\b/i)?"quicktime":a.match(/\b.swf\b/i)?"flash":a.match(/\biframe=true\b/i)?"iframe":a.match(/\bajax=true\b/i)?"ajax":a.match(/\bcustom=true\b/i)?"custom":"#"==a.substr(0,1)?"inline":"image"}function x(){if(doresize&&"undefined"!=typeof $pp_pic_holder){if(scroll_pos=y(),contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width(),projectedTop=o/2+scroll_pos.scrollTop-contentHeight/2,projectedTop<0&&(projectedTop=0),contentHeight>o)return;$pp_pic_holder.css({top:projectedTop,left:p/2+scroll_pos.scrollLeft-contentwidth/2})}}function y(){return self.pageYOffset?{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}:document.documentElement&&document.documentElement.scrollTop?{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}:document.body?{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}:void 0}function z(){o=a(window).height(),p=a(window).width(),"undefined"!=typeof $pp_overlay&&$pp_overlay.height(a(document).height()).width(p)}function A(){isSet&&settings.overlay_gallery&&"image"==w(pp_images[set_position])?(itemWidth=57,navWidth="facebook"==settings.theme||"pp_default"==settings.theme?50:30,itemsPerPage=Math.floor((i.containerWidth-100-navWidth)/itemWidth),itemsPerPage=itemsPerPage";toInject=settings.gallery_markup.replace(/{gallery}/g,toInject),$pp_pic_holder.find("#pp_full_res").after(toInject),$pp_gallery=a(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li"),$pp_gallery.find(".pp_arrow_next").click(function(){return a.prettyPhoto.changeGalleryPage("next"),a.prettyPhoto.stopSlideshow(),!1}),$pp_gallery.find(".pp_arrow_previous").click(function(){return a.prettyPhoto.changeGalleryPage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()}),itemWidth=57,$pp_gallery_li.each(function(b){a(this).find("a").click(function(){return a.prettyPhoto.changePage(b),a.prettyPhoto.stopSlideshow(),!1})})}settings.slideshow&&($pp_pic_holder.find(".pp_nav").prepend('Play'),$pp_pic_holder.find(".pp_nav .pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1})),$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme),$pp_overlay.css({opacity:0,height:a(document).height(),width:a(window).width()}).bind("click",function(){settings.modal||a.prettyPhoto.close()}),a("a.pp_close").bind("click",function(){return a.prettyPhoto.close(),!1}),settings.allow_expand&&a("a.pp_expand").bind("click",function(){return a(this).hasClass("pp_expand")?(a(this).removeClass("pp_expand").addClass("pp_contract"),doresize=!1):(a(this).removeClass("pp_contract").addClass("pp_expand"),doresize=!0),s(function(){a.prettyPhoto.open()}),!1}),$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){return a.prettyPhoto.changePage("previous"),a.prettyPhoto.stopSlideshow(),!1}),$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){return a.prettyPhoto.changePage("next"),a.prettyPhoto.stopSlideshow(),!1}),x()}f=jQuery.extend({hook:"rel",animation_speed:"fast",ajaxcallback:function(){},slideshow:5e3,autoplay_slideshow:!1,opacity:.8,show_title:!0,allow_resize:!0,allow_expand:!0,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:!1,wmode:"opaque",autoplay:!0,modal:!1,deeplinking:!0,overlay_gallery:!0,overlay_gallery_max:30,keyboard_shortcuts:!0,changepicturecallback:function(){},callback:function(){},ie6_fallback:!0,markup:'
 
',gallery_markup:'',image_markup:'',flash_markup:'',quicktime_markup:'',iframe_markup:'',inline_markup:'
{content}
',custom_markup:"",social_tools:''},f);var i,j,k,l,m,n,q,g=this,h=!1,o=a(window).height(),p=a(window).width();return doresize=!0,scroll_pos=y(),a(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){x(),z()}),f.keyboard_shortcuts&&a(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(b){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(b.keyCode){case 37:a.prettyPhoto.changePage("previous"),b.preventDefault();break;case 39:a.prettyPhoto.changePage("next"),b.preventDefault();break;case 27:settings.modal||a.prettyPhoto.close(),b.preventDefault()}}),a.prettyPhoto.initialize=function(){return settings=f,"pp_default"==settings.theme&&(settings.horizontal_padding=16),theRel=a(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=galleryRegExp.exec(theRel)?!0:!1,pp_images=isSet?jQuery.map(g,function(b){return-1!=a(b).attr(settings.hook).indexOf(theRel)?a(b).attr("href"):void 0}):a.makeArray(a(this).attr("href")),pp_titles=isSet?jQuery.map(g,function(b){return-1!=a(b).attr(settings.hook).indexOf(theRel)?a(b).find("img").attr("alt")?a(b).find("img").attr("alt"):"":void 0}):a.makeArray(a(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(g,function(b){return-1!=a(b).attr(settings.hook).indexOf(theRel)?a(b).attr("title")?a(b).attr("title"):"":void 0}):a.makeArray(a(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(a(this).attr("href"),pp_images),rel_index=isSet?set_position:a("a["+settings.hook+"^='"+theRel+"']").index(a(this)),B(this),settings.allow_resize&&a(window).bind("scroll.prettyphoto",function(){x()}),a.prettyPhoto.open(),!1},a.prettyPhoto.open=function(b){return"undefined"==typeof settings&&(settings=f,pp_images=a.makeArray(arguments[0]),pp_titles=a.makeArray(arguments[1]?arguments[1]:""),pp_descriptions=a.makeArray(arguments[2]?arguments[2]:""),isSet=pp_images.length>1?!0:!1,set_position=arguments[3]?arguments[3]:0,B(b.target)),settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),t(a(pp_images).size()),a(".pp_loaderIcon").show(),settings.deeplinking&&c(),settings.social_tools&&(facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href)),$pp_pic_holder.find(".pp_social").html(facebook_like_link)),$ppt.is(":hidden")&&$ppt.css("opacity",0).show(),$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity),$pp_pic_holder.find(".currentTextHolder").text(set_position+1+settings.counter_separator_label+a(pp_images).size()),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(e("width",pp_images[set_position]))?e("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(e("height",pp_images[set_position]))?e("height",pp_images[set_position]):settings.default_height.toString(),h=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(a(window).height()*parseFloat(movie_height)/100-150),h=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(a(window).width()*parseFloat(movie_width)/100-150),h=!0),$pp_pic_holder.fadeIn(function(){switch($ppt.html(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?unescape(pp_titles[set_position]):" "),imgPreloader="",skipInjection=!1,w(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position0&&(movie_id=movie_id.substr(0,movie_id.indexOf("?"))),movie_id.indexOf("&")>0&&(movie_id=movie_id.substr(0,movie_id.indexOf("&")))),movie="https://www.youtube.com/embed/"+movie_id,movie+=e("rel",pp_images[set_position])?"?rel="+e("rel",pp_images[set_position]):"?rel=1",settings.autoplay&&(movie+="&autoplay=1"),toInject=settings.iframe_markup.replace(/{width}/g,i.width).replace(/{height}/g,i.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":i=u(movie_width,movie_height),movie_id=pp_images[set_position];var b=/http(s?):\/\/(www\.)?vimeo.com\/(\d+)/,c=movie_id.match(b);movie="https://player.vimeo.com/video/"+c[3]+"?title=0&byline=0&portrait=0",settings.autoplay&&(movie+="&autoplay=1;"),vimeo_width=i.width+"/embed/?moog_width="+i.width,toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,i.height).replace(/{path}/g,movie);break;case"quicktime":i=u(movie_width,movie_height),i.height+=15,i.contentHeight+=15,i.containerHeight+=15,toInject=settings.quicktime_markup.replace(/{width}/g,i.width).replace(/{height}/g,i.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":i=u(movie_width,movie_height),flash_vars=pp_images[set_position],flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length),filename=pp_images[set_position],filename=filename.substring(0,filename.indexOf("?")),toInject=settings.flash_markup.replace(/{width}/g,i.width).replace(/{height}/g,i.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":i=u(movie_width,movie_height),frame_url=pp_images[set_position],frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1),toInject=settings.iframe_markup.replace(/{width}/g,i.width).replace(/{height}/g,i.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=!1,i=u(movie_width,movie_height),doresize=!0,skipInjection=!0,a.get(pp_images[set_position],function(a){toInject=settings.inline_markup.replace(/{content}/g,a),$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,r()});break;case"custom":i=u(movie_width,movie_height),toInject=settings.custom_markup;break;case"inline":myClone=a(pp_images[set_position]).clone().append('
').css({width:settings.default_width}).wrapInner('
').appendTo(a("body")).show(),doresize=!1,i=u(a(myClone).width(),a(myClone).height()),doresize=!0,a(myClone).remove(),toInject=settings.inline_markup.replace(/{content}/g,a(pp_images[set_position]).html())}imgPreloader||skipInjection||($pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject,r())}),!1},a.prettyPhoto.changePage=function(b){currentGalleryPage=0,"previous"==b?(set_position--,set_position<0&&(set_position=a(pp_images).size()-1)):"next"==b?(set_position++,set_position>a(pp_images).size()-1&&(set_position=0)):set_position=b,rel_index=set_position,doresize||(doresize=!0),settings.allow_expand&&a(".pp_contract").removeClass("pp_contract").addClass("pp_expand"),s(function(){a.prettyPhoto.open()})},a.prettyPhoto.changeGalleryPage=function(a){"next"==a?(currentGalleryPage++,currentGalleryPage>totalPage&&(currentGalleryPage=0)):"previous"==a?(currentGalleryPage--,currentGalleryPage<0&&(currentGalleryPage=totalPage)):currentGalleryPage=a,slide_speed="next"==a||"previous"==a?settings.animation_speed:0,slide_to=currentGalleryPage*itemsPerPage*itemWidth,$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)},a.prettyPhoto.startSlideshow=function(){"undefined"==typeof q?($pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){return a.prettyPhoto.stopSlideshow(),!1}),q=setInterval(a.prettyPhoto.startSlideshow,settings.slideshow)):a.prettyPhoto.changePage("next")},a.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){return a.prettyPhoto.startSlideshow(),!1}),clearInterval(q),q=void 0},a.prettyPhoto.close=function(){$pp_overlay.is(":animated")||(a.prettyPhoto.stopSlideshow(),$pp_pic_holder.stop().find("object,embed").css("visibility","hidden"),a("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){a(this).remove()}),$pp_overlay.fadeOut(settings.animation_speed,function(){settings.hideflash&&a("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible"),a(this).remove(),a(window).unbind("scroll.prettyphoto"),d(),settings.callback(),doresize=!0,j=!1,delete settings}))},!pp_alreadyInitialized&&b()&&(pp_alreadyInitialized=!0,hashIndex=b(),hashRel=hashIndex,hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1),hashRel=hashRel.substring(0,hashRel.indexOf("/")),setTimeout(function(){a("a["+f.hook+"^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)),this.unbind("click.prettyphoto").bind("click.prettyphoto",a.prettyPhoto.initialize)}}(jQuery);var pp_alreadyInitialized=!1;